<?php
include './include/conf.php';
header('Content-Type: text/json');
$selectcomm = $pdo->prepare('select c.contenu,c.date,concat(a.prenom," ",a.nom) as auteur, i.titre from commentaire c,adherent a,information i 
								where c.auteur = a.id_adherent and i.id_information = c.id_information and id_commentaire = ?');
$selectcomm->execute(array($_GET['id']));
echo json_encode($selectcomm->fetch());

?>